package com.nanfang51g3.ckz.ui.home;

import com.nanfang51g3.ckz.ui.index.IndexPresenter;
import com.nanfang51g3.ckz.utils.KLog;

import dagger.Module;
import dagger.Provides;

/**
 * dagger2 模块 通过注入View 给P层 IndexPresenter ,@Inject 标记 {@link IndexPresenter }构造函数
 * {@link IndexPresenter }
 */
@Module
public class HomeMainPresenterModule {

    private final HomeMainContract.View mview;

    public HomeMainPresenterModule(HomeMainContract.View view) {
        KLog.i("TAG",view==null?"进入了...HomeMainContract-is null":"进入了...HomeMainContract-not null");
        this.mview = view;
    }

    @Provides
    HomeMainContract.View provideHomeMainContractView() {
        return mview;
    }

}
